package com.hl.card.modular.pack.model;

/**
 * java类简单作用描述
 *
 * @ProjectName: newcard
 * @Package: com.hl.card.common.mq
 * @ClassName: ${TYPE_NAME}
 * @Description: java类作用描述
 * @Author: 作者姓名
 * @CreateDate: 2018/12/1 9:37
 * @UpdateUser: Neil.Zhou
 * @UpdateDate: 2018/12/1 9:37
 * @UpdateRemark: The modified content
 * @Version: 1.0
 * <p>Copyright: Copyright (c) 2018</p>
 */
public enum AwardResult {
    SUCCESS(0,"成功"),
    /*
     * 成功
     */
    FAIL(1, "奖励失败"),
    /*
     * 失败
     */
    USER_NOT_FOUND(2, "用户不存在"),
    /*
     * 错误
     */
    NOT_SUPPORTED_FUNCTION(3, "不支持的奖励方法"),
    /*
     * 错误
     */
    AWARD_NOT_FOUND(4, "该奖励在系统中不存在"),
    /*
     * 错误
     */
    DEFAULT5(5, "默认5"),
    /*
     * 错误
     */
    USERID_EMPTY(6, "用户ID为空"),
    /*
     * 错误
     */
    DEFAULT7(7, "默认7"),
    /*
     * 错误
     */
    CURRENCY_ERROR(8, "订单金额的计量单位不支持"),
    /*
     * 错误
     */
    AWARD_TYPE_ERROR(9, "不支持的奖励订单类型"),
    /*
     * 错误
     */
    REPEAT_AWARD_ERROR(10, "重复领取奖励"),
    /*
     * 错误
     */
    WITH_DELAY_CALLBACK(11, "带延时和回调消息队列"),
    /*
     * 错误
     */
    AWARD_INNER_ERROR(12, "奖励系统异常"),
    /*
     * 错误
     */
    INPUT_MSG_ERROR(13, "接收消息异常，JSON解析错误");
    private int type;
    private String name;

    public int getType() {
        return type;
    }

    public void setType(int status) {
        this.type = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private AwardResult(int type, String name) {
        this.type = type;
        this.name = name;
    }
}
